import BilibiliPage from './bilibili/index.jsx';
import TucaoPage from './tucao';

//首页判断
export default function IndexPage() {
  const isBd = location.hostname === 'localhost';
  const bilibili = isBd && location.search.includes('bilibili');
  const tucao = isBd && location.search.includes('tucao');
  if (location.host.includes('bilibili.com') || bilibili) {
    //打开是B站
    return <BilibiliPage />;
  } else if (location.host.includes('tucao.one') || tucao) {
    //打开是tucao站
    return <TucaoPage />;
  }
  return <div>暂无页面</div>;
}
